Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Fix for index oob caused by terminal size mismatch #238

Merged
merged 5 commits into from
Sep 18, 2020

Conversation

ClementTsang
Copy link
Owner

@ClementTsang ClementTsang commented Sep 18, 2020

Description

A description of the change and what it does. If relevant, please provide screenshots of what results from the change:

Fix for an index out-of-bounds by resizing to a smaller terminal just after the program got the terminal size, but right before the terminal started drawing.

Based off of fdehau/tui-rs#343.

Issue

If applicable, what issue does this address?

Closes: #237

Type of change

Remove the irrelevant ones:

  • Bug fix (non-breaking change which fixes an issue)

Test methodology

If required, please state how this was tested:

Furthermore, please tick which platforms this change was tested on:

  • Windows
  • macOS
  • Linux

Checklist

If relevant, see if the following have been met:

  • Change has been tested to work
  • Areas your change affects have been linted using rustfmt
  • Code has been self-reviewed
  • Code has been tested and no new breakage is introduced unless intended
  • Passes CI tests
  • Documentation has been added/updated if needed (README, help menu, etc.)
  • No merge conflicts arise from the change

Other information

Provide any other relevant information:

Basing off of fdehau/tui-rs#343, this may
be why we had an oob error in
#237?
@ClementTsang ClementTsang marked this pull request as ready for review September 18, 2020 05:46
@ClementTsang ClementTsang changed the title bug: Potential fix for terminal size mismatch during render bug: Fix for terminal size mismatch during render Sep 18, 2020
@ClementTsang ClementTsang changed the title bug: Fix for terminal size mismatch during render bug: Fix for index oob caused by terminal size mismatch Sep 18, 2020
@ClementTsang ClementTsang merged commit b0b174e into master Sep 18, 2020
@ClementTsang ClementTsang deleted the fix_network_index_oob branch September 18, 2020 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

index out of bounds crash - v0.4.7
1 participant